package com.sqoop.server.state;


/**
 * Created by - on 2017/11/9.
 */
public class StatInfo {
    private String taskid;
    private int receiveSize;
    private int processSize;
    private int errorsSize;
    private long runningTime;



    public StatInfo(){

    }

    public StatInfo(int receiveSize, int processSize, int errorsSize, long runningTime) {
        this.receiveSize = receiveSize;
        this.processSize = processSize;
        this.errorsSize = errorsSize;
        this.runningTime = runningTime;
    }

    public String getTaskid() {
        return taskid;
    }

    public void setTaskid(String taskid) {
        this.taskid = taskid;
    }

    public int getReceiveSize() {
        return receiveSize;
    }

    public void setReceiveSize(int receiveSize) {
        this.receiveSize = receiveSize;
    }

    public int getProcessSize() {
        return processSize;
    }

    public void setProcessSize(int processSize) {
        this.processSize = processSize;
    }

    public int getErrorsSize() {
        return errorsSize;
    }

    public void setErrorsSize(int errorsSize) {
        this.errorsSize = errorsSize;
    }

    public long getRunningTime() {
        return runningTime;
    }

    public void setRunningTime(long runningTime) {
        this.runningTime = runningTime;
    }


    @Override
    public String toString() {
        return "StatInfo{" +
                "taskid='" + taskid + '\'' +
                ", receiveSize=" + receiveSize +
                ", processSize=" + processSize +
                ", errorsSize=" + errorsSize +
                ", runningTime=" + runningTime +
                '}';
    }
}